package com.jbl.te.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author jbl
 * @since 2020-12-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("te_courseclass")
@ApiModel(value="Courseclass对象", description="")
public class Courseclass implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "外键 课程id")
    private String courseId;

    @ApiModelProperty(value = "外键 教师id")
    private String teacherId;

    @ApiModelProperty(value = "限选人数")
    private Integer limitNumber;

    @ApiModelProperty(value = "上课时间(拼接)")
    private String classTime;

    @ApiModelProperty(value = "上课地点")
    private String classPlace;

    @ApiModelProperty(value = "0-未删除 1-已删除")
    @TableLogic
    private Boolean isDeleted;

    @ApiModelProperty(value = "0-未确定 1-已确定")
    private Boolean isConfirm;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT) //插入操作时自动更新该字段
    private Date gmtCreate;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE) //插入和更新操作时自动更新该字段
    private Date gmtModified;


}
